package com.ns002.yigou.quote.json;

import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by xu on 2016/12/29.
 * 行情报价
 */
public class QueryQuote implements Serializable {


    //                "open": "3048.0000",
//                        "newDate": "2016-12-29 21:14:40",
//                        "quote": "3041.0000",
//                        "yQuote": "3031.0000",
//                        "high": "3074.0000",
//                        "code": true,
//                        "low": "3040.0000",
//                        "createDate": "2016-12-29 21:14:40",
//                        "preClose": "3031.0000"
    private String open;          //开盘价
    private String productName;   //产品名
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date newDate;       //当前时间
    private String quote;         //行情
    private String yQuote;        //昨日行情
    private String high;          //最高价
    @JSONField(serialize = false)
    private String code;
    private String low;           //最低价
    private String org;           //交易所
    @JSONField(format = "yyyy-MM-dd HH:mm:ss SSS")
    private Date createDate;
    private String preClose;      //休市价
    private String contract;      //标识
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date openDate;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date closeDate;


    public String getOpen() {
        return open;
    }

    public void setOpen(String open) {
        this.open = open;
    }

    public Date getNewDate() {
        return newDate;
    }

    public void setNewDate(Date newDate) {
        this.newDate = newDate;
    }

    public String getQuote() {
        return quote;
    }

    public void setQuote(String quote) {
        this.quote = quote;
    }

    public String getyQuote() {
        return yQuote;
    }

    public void setyQuote(String yQuote) {
        this.yQuote = yQuote;
    }

    public String getHigh() {
        return high;
    }

    public void setHigh(String high) {
        this.high = high;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getLow() {
        return low;
    }

    public void setLow(String low) {
        this.low = low;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getPreClose() {
        return preClose;
    }

    public void setPreClose(String preClose) {
        this.preClose = preClose;
    }

    public String getContract() {
        return contract;
    }

    public void setContract(String contract) {
        this.contract = contract;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getOrg() {
        return org;
    }

    public void setOrg(String org) {
        this.org = org;
    }

    public Date getOpenDate() {
        return openDate;
    }

    public void setOpenDate(Date openDate) {
        this.openDate = openDate;
    }

    public Date getCloseDate() {
        return closeDate;
    }

    public void setCloseDate(Date closeDate) {
        this.closeDate = closeDate;
    }
}
